how to monitor files